#!/bin/bash


rm -fr problem3_output.txt
rm -fr problem3_performance_output.txt

echo "problem3:"
echo "#cores	time" >>problem3_performance_output.txt

mpirun n0-19 -ssi pri usysv ./copy -d /proj/spear1/cse411/

for nodes in `seq 19`
do
	echo " testing with `expr $nodes + 1 ` nodes"
	echo " testing with `expr $nodes + 1 ` nodes" >>problem3_output.txt
	mpirun n0-$nodes -ssi rpi usysv ./ql-round -n3 -d /tmp/chw412/ 2>>problem3_performance_output.txt >problem3_output.txt
done
